import React, {Component} from 'react';
//import PropTypes from 'prop-types';
import {Link} from 'react-router';
import Header from '../component/Header';
import Footer from '../component/Footer';

export default class App extends Component {
    render() {
        console.log("test");
        return (
            <div>
                <Header/>
                <h2>React Router2 Tutorial</h2>
                <ul>
                    <li><Link to="/about">About</Link></li>
                    <li><Link to="/repos">Repos</Link></li>
                    <li><Link to="/demo-layout">Demo Layout</Link></li>
                    <li><Link to="/details">Details</Link></li>
                </ul>
                {this.props.children}
                <Footer/>
            </div>
        );
    }
}
			